<!--主页框架-->
<template>
  <el-container>

    <el-aside width="200px">  <!--侧边栏-->
      <SideMenu></SideMenu>
    </el-aside>

    <el-container>

      <el-header height="45px"><!--头部-->
        <Header></Header>
      </el-header>

      <el-main>
        <div id="space"></div>
        <Tabs></Tabs>
        <div style="margin: 0 15px">  <!--上下0，左右15px的偏移-->
          <router-view></router-view>
        </div>
      </el-main>

    </el-container>
  </el-container>
</template>

<script>
  import SideMenu from "./common/SideMenu"; //引入要使用的组件
  import Header from "./common/Header";
  import Tabs from "./common/Tabs";
  export default {
    name: "Home",
    components: { //声明使用的的组件
      SideMenu,Header,Tabs
    },
    data(){
      return {

      }
    }
  }
</script>

<style scoped>
  .el-container{
    height: 100%;
    padding: 0;
    margin: 0;
  }
  .el-header{
    background-color: #ffffff;
    color: #333;
    text-align: center;
    padding-left: 0;
  }

  .el-aside {
    background-color: #D3DCE6;
    text-align: left;
    color: #333;
    line-height: 200px;
  }
  .el-main {
    color: #333;
    padding: 0;
    /*line-height: 160px;*/
  }
  #space{
    background-color: #f3f3f3;
    height: 5px;
  }
</style>
